Skip to content

Use ILog.of(Class).error in IDEApplication version-file logger#3927

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:cleanup/status-util-misc
Apr 23, 2026
Merged

Use ILog.of(Class).error in IDEApplication version-file logger#3927
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:cleanup/status-util-misc

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 23, 2026

Replaces the cross-bundle call to org.eclipse.ui.internal.ide.StatusUtil .newError(...) in IDEApplication#writeVersion with ILog.of(IDEApplication .class).error(message, throwable), and drops the now-unused StatusUtil import.

Behavior changes:

  • Plug-in id moves from "org.eclipse.ui.ide" (IDE_WORKBENCH constant in the called StatusUtil) to "org.eclipse.ui.ide.application", which is the bundle that actually emits the version-file write failure.
  • The previous IDEWorkbenchPlugin.log(message, status) helper emitted two separate log entries (one for the message, one for the status); this now produces a single coherent entry whose status carries both the context message and the throwable, removing the dependency on the potentially-null e.getLocalizedMessage().

Replaces the cross-bundle call to org.eclipse.ui.internal.ide.StatusUtil
.newError(...) in IDEApplication#writeVersion with ILog.of(IDEApplication
.class).error(message, throwable), and drops the now-unused StatusUtil
import.

Behavior changes:
- Plug-in id moves from "org.eclipse.ui.ide" (IDE_WORKBENCH constant in
  the called StatusUtil) to "org.eclipse.ui.ide.application", which is
  the bundle that actually emits the version-file write failure.
- The previous IDEWorkbenchPlugin.log(message, status) helper emitted
  two separate log entries (one for the message, one for the status);
  this now produces a single coherent entry whose status carries both
  the context message and the throwable, removing the dependency on the
  potentially-null e.getLocalizedMessage().
@github-actions
Copy link
Copy Markdown
Contributor

Test Results

   852 files  ±0     852 suites  ±0   52m 36s ⏱️ - 1m 51s
 7 913 tests ±0   7 670 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 241 runs  ±0  19 586 ✅ ±0  655 💤 ±0  0 ❌ ±0 

Results for commit 3d7b588. ± Comparison against base commit fc4799a.

@vogella vogella merged commit a441844 into eclipse-platform:master Apr 23, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant